﻿<Selection:SelectControl x:Class="jSLApp.Client.Forms.LogList"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:Selection="clr-namespace:jSLCore.Client.Presentation.BaseControl.Selection;assembly=jSLCore.Client.Presentation" xmlns:Controls="clr-namespace:jSLCore.Client.Presentation.Controls;assembly=jSLCore.Client.Presentation" xmlns:Controls1="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data" xmlns:Converters="clr-namespace:jSLApp.Client.Converters" xmlns:jBinding="clr-namespace:jSLCore.Client.Presentation.jBinding;assembly=jSLCore.Client.Presentation" mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">
    <Controls:ImageGroupBox Header="Журнал событий">
        <Selection:jSLGrid x:Name="grid" Foreground="Black">
            <Selection:jSLGrid.Columns>
                <Controls1:DataGridTemplateColumn>
                    <Controls1:DataGridTemplateColumn.CellTemplate>
                        <DataTemplate>
                            <Image Width="14" Height="14">
                                <Image.Source>
                                    <Binding Path="TypeEnum">
                                        <Binding.Converter>
                                            <Converters:LogTypeToImageConverter/>
                                        </Binding.Converter>
                                    </Binding>
                                </Image.Source>
                            </Image>
                        </DataTemplate>
                    </Controls1:DataGridTemplateColumn.CellTemplate>
                </Controls1:DataGridTemplateColumn>
                <Controls1:DataGridTextColumn Header="Описание" Binding="{Binding Info}"/>
                <Controls1:DataGridTextColumn Header="Время">
                	<Controls1:DataGridTextColumn.Binding>
                		<jBinding:jBinding Path="CreationDate" ConvertingMode="ToShortDateAndTime"/>
                	</Controls1:DataGridTextColumn.Binding>
                </Controls1:DataGridTextColumn>
                <Controls1:DataGridTextColumn Header="Пользователь" Binding="{Binding User}"/>                
                <Controls1:DataGridTextColumn Header="Сущность целого типа" Binding="{Binding RowIntId}"/>
                <Controls1:DataGridTextColumn Header="Сущность типа GUID" Binding="{Binding RowGUIDId }"/>
            </Selection:jSLGrid.Columns>
        </Selection:jSLGrid>
    </Controls:ImageGroupBox>
</Selection:SelectControl>
